<include file="public/header" />
<include file="public/left" />
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表">返回上一页</a>
            <div class="subject">
                <h3>信息编辑</h3>
                <h5>网站系统权限资源管理</h5>
            </div>
        </div>
    </div>
<form method="post" enctype="multipart/form-data">
    <section>
        <ul class="ulColumn2">
            <div id="param-items">
            <foreach name="list" item="vo" key="k" >
            <li>
                        <a href="javascript:;" class="fa fa-move" title="拖动调整此显示顺序">移动</a>&nbsp;
                        <a href="javascript:;" onclick="deleteParam1(this)"  style="margin-top:10px;" title="删除">删除</a>
                       满 <input name="full[]" type="text" style="width: 150px"  class="textbox textbox_295"  value="{$vo['full']}"/>
                        减<input name="reduce[]" type="text" style="width: 150px"   class="textbox textbox_295" value="{$vo['reduce']}"/>
            </li>
            </foreach>
            </div>
            <li>
                <span class="item_name" style="width:120px;"></span>
                <input type="submit" class="link_btn" value="提交" />
                <input type="button" class="link_btn" onclick="addParam()" value="增加" />
            </li>
        </ul>
    </section>
</form>
    <script type="text/javascript" src="__STATIC__/admin/js/jquery-ui-1.10.3.min.js"></script>
    <script>
        $(function() {
            $("#param-items").sortable({handle: '.fa-move'});
        })
        function addParam() {
            $.ajax({
                "url": "{:url('set/tpl')}",
                success: function(data) {
                    $('#param-items').append(data);
                }
            });
            return;
        }

        //
        function deleteParam1(o) {
                    $(o).parent().remove();

            return;

        }
    </script>
</div>
</section>
</body>
</html>